package com.hdw.med.api;

import com.hdw.common.base.BaseException;
import com.hdw.common.vo.FieldAttrVO;
import com.hdw.common.vo.PaginationVO;
import com.hdw.med.bean.model.BaseDb;

import java.util.List;
import java.util.Map;

/**
 * Created by liujunlei on 2021/5/28.
 */
public interface TableOperService {

    PaginationVO<Map<String, Object>> findByDbAndSql(String sql, Long idDb, Integer pageNum, Integer pageSize) throws BaseException;

    List<FieldAttrVO> findFieldMsgFromDb(BaseDb baseDb, String tableName);

    int execDdlSqlByDb(String sql,String idDb);

    int execDelByDb(String sql, String idDb);

    List<FieldAttrVO> findTables(BaseDb baseDb,String tableName);

}
